package com.winning.devops.web;

import com.winning.devops.dao.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chensj
 * @title
 * @project spring-boot-cli
 * @package com.winning.devops.web
 * @date: 2019-04-01 9:20
 */
@RestController
public class TestController {
    @Autowired
    private UserRepository userRepository;
    @RequestMapping(value = "/user")
    public String root(){
        userRepository.findAll();
        return "spring boot";
    }
}
